package com.lmk.mkcc.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.lmk.mkcc.domain.UserGrowth;
import com.lmk.mkcc.mapper.UserGrowthMapper;
import com.lmk.mkcc.service.IUserGrowthService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author kun
 * @since 2022-10-02
 */
@Service
public class UserGrowthServiceImpl extends ServiceImpl<UserGrowthMapper, UserGrowth> implements IUserGrowthService {

    @Override
    public UserGrowth getByUserId(Long userId) {
        EntityWrapper<UserGrowth> wrapper = new EntityWrapper<>();
        wrapper.eq("user_id",userId);
        return selectOne(wrapper);
    }
}
